<%--
  Created by IntelliJ IDEA.
  User: azure
  Date: 2021/10/19
  Time: 21:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<style>
    * {
        margin: 0;
        padding: 0;
    }

    table,
    td {
        border-collapse: collapse;
    }

    table {
        width: 500px;
        height: 200px;
        margin: 200px auto;
        border: 1px solid #ccc;
    }

    td, th {
        border: 1px solid #ccc;
        text-align: center;
    }
</style>
<body>
<h3>查询所有的账户</h3>
<table>
    <tr>
        <th>id</th>
        <th>姓名</th>
        <th>金额</th>
    </tr>
    <c:forEach items="${accountList}" var="account">
        <tr>
            <td>
                    ${account.id}
            </td>
            <td>
                    ${account.name}
            </td>
            <td>
                    ${account.money}
            </td>
        </tr>
    </c:forEach>
</table>


</body>
</html>
